//
//  TTCouponViewController.h
//  TaoTuo
//
//  Created by admin on 2019/9/29.
//  Copyright © 2019 admin. All rights reserved.
//

#import "LLBaseViewController.h"
@class TTCouponModel;

///选中之后回调
typedef void(^SelectedCoupon)(TTCouponModel * _Nullable couponModel, UIViewController * _Nullable vc);

NS_ASSUME_NONNULL_BEGIN

@interface TTCouponViewController : LLBaseViewController

@property (nonatomic, copy) SelectedCoupon selectedCoupon;

/// 初始化
/// @param dataArray 数据源
- (instancetype)initWithDataArray:(nullable NSArray *)dataArray showNotUseCoupon:(BOOL)showNotUseCoupon;

/// 初始化
/// @param couponState 优惠券类型 2：不可用优惠券，0：所有可用优惠券或当前商品下单可用优惠券
- (instancetype)initWithCouponState:(NSInteger)couponState;

@end

NS_ASSUME_NONNULL_END
